-- GENERATED SPELL FOR [Scarlet Disciple] --


function spell0_4285(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_4285', 3500, 1)
end

function spell1_4285(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4285', 2500, 1)
end

function spell2_4285(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_4285', 15000, 1)
end

function Sorts_4285(pUnit, Event)
local choix_sorts_4285 = math.random(0, 2)
if choix_sorts_4285 == 0 then
pUnit:RegisterEvent('spell0_4285', 1, 1)
end
if choix_sorts_4285 == 1 then
pUnit:RegisterEvent('spell1_4285', 1, 1)
end
if choix_sorts_4285 == 2 then
pUnit:RegisterEvent('spell2_4285', 1, 1)
end
end

function mob4285_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4285', math.random(1500, 3000), 1)
end

function mob4285_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4285_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4285_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4285, 1, 'mob4285_Action')
RegisterUnitEvent(4285, 2, 'mob4285_Leave')
RegisterUnitEvent(4285, 3, 'mob4285_Kill')
RegisterUnitEvent(4285, 4, 'mob4285_Die')
